package com.caishi.lkx.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caishi.lkx.user.mapper.WeixinCodeMapper;
import com.caishi.lkx.user.model.WeixinCodeModel;
import org.springframework.stereotype.Service;

import java.io.Serializable;


@Service
public class WeixinCodeServiceImpl extends ServiceImpl<WeixinCodeMapper, WeixinCodeModel> {
    @Override
    public boolean save(WeixinCodeModel entity) {
        return super.save(entity);
    }
    @Override
    public  WeixinCodeModel getById(Serializable id){

        return getBaseMapper().selectById(id);
    };
    public Page<WeixinCodeModel> selectPage(Page page, QueryWrapper queryWrapper){
        return getBaseMapper().selectPage(page,queryWrapper);
    }
}
